let geoJsonAliyunBaseUrl = "http://geo.datav.aliyun.com/areas_v3/bound/";

let chinaMapData;
let chinaMapBorderData = {};
let chinaMapFullBorderData = {};

export default {
	async queryChinaMapBorderData(areaCode = "100000") {
		if (!chinaMapBorderData[areaCode]) {
			let res = await mars3d.Util.fetchJson({ url: `//data.mars3d.cn/file/geojson/areas/${areaCode}.json` });
			chinaMapBorderData[areaCode] = res;
		}
		return chinaMapBorderData[areaCode];
	},
	async queryChinaMapFullBorderData(areaCode = "100000") {
		if (!chinaMapFullBorderData[areaCode]) {
			let res = await mars3d.Util.fetchJson({ url: `//data.mars3d.cn/file/geojson/areas/${areaCode}_full.json` });
			chinaMapFullBorderData[areaCode] = res;
		}
		console.log(chinaMapFullBorderData[areaCode]);
		return chinaMapFullBorderData[areaCode];
	}
}